Objects Reference

flay_pak::read

Prototype

int read(void *dest, int size)

Parameters

Parameter Type Description
dest void * destination memory pointer
size int number of bytes to read

Return Value

Returns the actual number of bytes copied to the destination buffer.

Remarks

This function reads an specified number of bytes from the opened file into the dest memory buffer. If the number of bytes requested is more than the bytes available in the file, only the available bytes are copied and the number of bytes actually copied are returned.